!function(t) {
	function e(a) {
		if (n[a]) return n[a].exports;
		var o = n[a] = {
			exports: {},
			id: a,
			loaded: !1
		};
		return t[a].call(o.exports, o, o.exports, e), o.loaded = !0, o.exports
	}
	var n = {};
	return e.m = t, e.c = n, e.p = "", e(0)
}([function(t, e, n) {
	function a(t) {
		f.loadCss("captcha");
		for (var e in t) this[e] = t[e];
		var n = "";
		x("script").each(function() {
			if (this.src && this.src.indexOf("nocaptcha.js?idc=") > -1) {
				var t = this.src.match(/nocaptcha\.js\?idc=([a-zA-Z0-9_]+)/);
				t && t[1] && (n = t[1])
			}
		}), this.idc = n, this.dom = x(this.dom), this.t = new v, this.path = [], o(this), i(this), r(this), h(this, "init")
	}
	function o(t) {
		var e = t.dom.html(f.loadTemplate("captcha", t.lang));
		t.hideDisplay ? e.hide() : e.show()
	}
	function i(t) {
		var e = t.dom.find(".nocaptcha-refresh");
		e.on("click", function() {
			h(t, "refresh")
		}), t.dom.find(".nocaptcha-info").on("click", function() {
			x(this).hasClass("nocaptcha-fail") && h(t, "refresh")
		})
	}
	function c(t, e) {
		for (var n in e) t = t.replace("{" + n + "}", e[n]);
		return t
	}
	function r(t) {
		var e = t.dom.find(".nocaptcha-slice"),
			n = !1,
			a = 0,
			o = 0,
			i = 0,
			r = 0;
		x(document).on("mousedown", function(c) {
			t.disabled || c.target != e[0] || (w.send(t.id, t.idc), t.path = [], t.b2 = [(new Date).getTime()], t.t.start("dragtime"), i = t.dom.offset().left || 0, r = t.dom.offset().top || 0, a = c.offsetX || c.originalEvent.offsetX || 0, o = c.offsetY || c.originalEvent.offsetY || 0, n = !0, t.dom.find(".nocaptcha-new").show().addClass("nocaptcha-new-show"))
		}), x(document).on("mousemove", function(c) {
			if (n) {
				var s = c.pageX - i - a,
					d = c.pageY - r - o;
				e.css({
					left: s,
					top: d
				}), t.b2.push((new Date).getTime()), t.path.push([s, d, t.t.end("dragtime")])
			}
		}), x(document).on("mouseup", function(a) {
			if (n) {
				t.dom.find(".nocaptcha-new").hide(), n = !1;
				var o = {
					left: t.dom.find(".nocaptcha-img").position().left,
					top: t.dom.find(".nocaptcha-img").position().top,
					width: t.data.width,
					height: t.data.height
				},
					i = parseInt(e.position().left) - o.left,
					r = parseInt(e.position().top) - o.top;
				if (i < 0 || i > o.width || r < 0 || r > o.height) return;
				var h = f.formatPath(t.path);
				f.api({
					url: c(u.checkapi, {
						IDC: t.idc || ""
					}),
					data: {
						sid: t.id,
						result: t.enc.ea([i, r, o.left, o.top]),
						imgload: t.t.get("imgload"),
						time: t.t.get("dragtime"),
						p1: t.enc.ea(h.x),
						p2: t.enc.ea(h.y),
						p3: t.enc.ea(h.t),
						b1: t.enc.ea(b.get()),
						b2: t.enc.ea(f.arrayDelta(t.b2 || []))
					},
					dataType: "json",
					success: function(e) {
						var n = {
							cancelTip: !1
						};
						if (e.code)"function" == typeof t.error && t.error(n), !n.cancelTip && d(t);
						else {
							var a = e.data.token + "," + t.id + "," + t.idc;
							"function" == typeof t.success && t.success(n, a), !n.cancelTip && s(t)
						}
					},
					error: function(e) {
						var n = {
							type: "check",
							cancelTip: !1
						};
						"function" == typeof t.fatel && t.fatel(n, e), !n.cancelTip && d(t, g.get("NET_ERROR"))
					}
				})
			}
		})
	}
	function s(t, e) {
		t.dom.find(".nocaptcha-info").removeClass("nocaptcha-fail").addClass("nocaptcha-pass").find("span").text(e || g.get("CHECK_SUCCESS", null, t.lang)), t.dom.find(".nocaptcha-info-mask, .nocaptcha-info").show()
	}
	function d(t, e) {
		t.dom.find(".nocaptcha-info").removeClass("nocaptcha-pass").addClass("nocaptcha-fail").find("span").text(e || g.get("CHECK_FAILD", null, t.lang)), t.dom.find(".nocaptcha-info-mask, .nocaptcha-info").show()
	}
	function h(t, e) {
		p(t), f.api({
			url: c(u.getapi, {
				IDC: t.idc || ""
			}),
			dataType: "json",
			success: function(e) {
				!e.code && e.data && l(t, e.data)
			},
			error: function(n) {
				var a = {
					type: e || "refresh",
					cancelTip: !1
				};
				"function" == typeof t.fatel && t.fatel(a, n), !a.cancelTip && d(t, g.get("NET_ERROR"))
			}
		})
	}
	function p(t) {
		t.dom.find(".nocaptcha-ori,.nocaptcha-new,.nocaptcha-slice,.nocaptcha-info-mask,.nocaptcha-info").hide()
	}
	function l(t, e) {
		t.init = parseInt((new Date).getTime() / 1e3), t.id = e.sid, t.enc = new m(e.sid), t.data = e, t.disabled = !1, t.dom.find(".nocaptcha-ori").show(), t.dom.find(".nocaptcha-slice").css({
			left: "",
			top: "",
			width: e.swidth,
			height: e.sheight,
			"background-image": "url(" + f.getImgUrl(e.slice) + ")"
		}).show();
		var n = t.enc.da(e.rank),
			a = t.enc.di(e.rank.substr(e.rank.length - 4, 2)),
			o = t.enc.di(e.rank.substr(e.rank.length - 2, 2));
		t.t.start("imgload");
		var i = f.getImgUrl(e.fullbg),
			c = f.getImgUrl(e.bg);
		f.loadImage(i, function() {
			t.t.end("imgload"), f.rebuildImage(n, e.width, e.height, a, o, i, t.dom.find(".nocaptcha-ori"))
		}), f.loadImage(c, function() {
			f.rebuildImage(n, e.width, e.height, a, o, c, t.dom.find(".nocaptcha-new"))
		})
	}
	var f = n(1),
		u = n(2),
		g = n(3),
		m = n(9),
		v = n(10),
		w = n(11),
		b = n(12),
		x = n(4);
	a.prototype = {
		refresh: function() {
			h(this, "refresh")
		},
		hide: function() {
			this.dom.hide()
		},
		show: function() {
			this.dom.show()
		},
		tip: function(t, e) {
			e ? s(this, t) : d(this, t)
		}
	}, t.exports = a, window.NoCaptcha = {
		create: function(t) {
			return new a(t || {})
		},
		setLanguage: function(t) {
			g.setLang(t)
		},
		getLanguage: function() {
			return g.getLang()
		}
	}
}, function(t, e, n) {
	var a = n(2),
		o = n(3),
		i = n(4);
	t.exports = {
		loadedCss: {},
		getImgUrl: function(t) {
			return t
		},
		loadImage: function(t, e, n) {
			var a = new Image,
				o = new Date;
			a.src = t, a.onload = function() {
				var n = ((new Date).getTime() - o.getTime()) / 1e3;
				e && e(t, parseInt(n))
			}, a.onerror = function(t) {
				n && n(t)
			}
		},
		arrayDelta: function(t) {
			for (var e = [], n = 1; n < t.length; n++) e.push(t[n] - t[n - 1]);
			return e
		},
		rebuildImage: function(t, e, n, a, o, i, c) {
			for (var r = "", s = parseInt(e / a), d = s * (n / o), h = 0; h < t.length && h < d; h++) {
				var p = t[h] % s * a,
					l = parseInt(t[h] / s) * o,
					f = -(h % s) * a,
					u = -parseInt(h / s) * o,
					g = this.toStyleString({
						width: a + "px",
						height: o + "px",
						"background-image": "url(" + i + ")",
						left: p + "px",
						top: l + "px",
						"background-position": f + "px " + u + "px"
					});
				r += '<div style="' + g + '"></div>'
			}
			c.html(r)
		},
		toStyleString: function(t) {
			var e = "";
			for (var n in t) e += n + ":" + t[n] + ";";
			return e
		},
		api: function(t) {
			t.data = t.data || {}, t.cache = !1, t.timeout = a.timeout, t.dataType = "jsonp", t.data.ver = a.version, t.data.lang = o.getLang(), i.ajax(t)
		},
		loadTemplate: function(t, e) {
			for (var a = n(5)("./" + t + ".html"), i = a.match(/\{\{[a-zA-Z0-9\-_]+\}\}/g), c = 0; i && c < i.length; c++) {
				var r = i[c].replace(/(^\{+)|(\}+$)/g, "");
				a = a.replace(i[c], o.get(r, null, e))
			}
			return a
		},
		loadCss: function(t) {
			if (!this.loadedCss[t]) {
				this.loadedCss[t] = 1;
				var e = n(7)("./" + t + ".less");
				i('<style type="text/css">' + e + "</style>").appendTo("head")
			}
		},
		formatPath: function(t) {
			if (!t || !t.length) return "";
			for (var e = [t[0][0]], n = [t[0][1]], a = [t[0][2]], o = 1; o < t.length; o++) {
				var i = t[o][0] - t[o - 1][0],
					c = t[o][1] - t[o - 1][1],
					r = t[o][2] - t[o - 1][2];
				(i || c || r) && (e.push(i), n.push(c), a.push(r))
			}
			return {
				x: e,
				y: n,
				t: a
			}
		}
	}
}, function(t, e) {
	var n = location.protocol + "//passport.baidu.com",
		a = location.protocol + "//passport.baidu.com";
	t.exports = {
		version: "0.0.1",
		getapi: n + "/static/nocaptcha/js/info.js?idc={IDC}",
		checkapi: n + "/static/nocaptcha/js/check.js?idc={IDC}",
		collectapi: a + "/static/nocaptcha/js/collect.js",
		timeout: 1e4,
		timeline_delay: 10,
		timeline_count: 50,
		collect_interval: 100
	}
}, function(t, e) {
	t.exports = {
		lang: "zh-cn",
		words: {
			"zh-cn": {
				SLIDE_TIP: "è¯·æ‹–åŠ¨å³ä¾§å›¾ç‰‡å®Œæˆæ‹¼å›¾",
				REFRESH: "åˆ·æ–°éªŒè¯ç ",
				CHECK_SUCCESS: "éªŒè¯æˆåŠŸ",
				CHECK_FAILD: "æ‹¼å›¾å¥½åƒä¸æ­£ç¡®ï¼Œè¯·åˆ·æ–°é‡è¯•",
				CHECK_FAILD2: "å¥½åƒæœ‰ä»€ä¹ˆå¥‡æ€ªçš„ä¸œè¥¿ï¼Œè¯·åˆ·æ–°é‡è¯•",
				NET_ERROR: "ç½‘ç»œè¿žæŽ¥å¤±è´¥ï¼Œç¨åŽè¯·é‡è¯•"
			},
			en: {
				SLIDE_TIP: "Please complete the puzzle",
				REFRESH: "Refresh",
				CHECK_SUCCESS: "Pass",
				CHECK_FAILD: "Faild",
				CHECK_FAILD2: "Faild",
				NET_ERROR: "Network Error"
			}
		},
		get: function(t, e, n) {
			return e = e || this.lang, n = n || {}, n[t] || this.words[e || this.lang][t] || ""
		},
		getLang: function() {
			return this.lang
		},
		setLang: function(t) {
			return t = (t || "").toLowerCase(), "object" == typeof this.words[t] && (this.lang = t), this.lang
		}
	}
}, function(t, e) {
	t.exports = window.jQuery || window.zepto || window.baidu || window.$
}, function(t, e, n) {
	function a(t) {
		return n(o(t))
	}
	function o(t) {
		return i[t] ||
		function() {
			throw new Error("Cannot find module '" + t + "'.")
		}()
	}
	var i = {
		"./captcha.html": 6
	};
	a.keys = function() {
		return Object.keys(i)
	}, a.resolve = o, t.exports = a, a.id = 5
}, function(t, e) {
	t.exports = '<div class="nocaptcha"><p>{{SLIDE_TIP}}</p><div class="nocaptcha-img"><div class="nocaptcha-ori"></div><div class="nocaptcha-new"></div><div class="nocaptcha-info-mask"></div><div class="nocaptcha-info"><span></span></div></div><div class="nocaptcha-slice"></div><div class="nocaptcha-refresh" title="{{REFRESH}}"></div></div>'
}, function(t, e, n) {
	function a(t) {
		return n(o(t))
	}
	function o(t) {
		return i[t] ||
		function() {
			throw new Error("Cannot find module '" + t + "'.")
		}()
	}
	var i = {
		"./captcha.less": 8
	};
	a.keys = function() {
		return Object.keys(i)
	}, a.resolve = o, t.exports = a, a.id = 7
}, function(t, e) {
	t.exports = ".nocaptcha{position:relative;overflow:hidden;width:348px;height:263px;border:1px solid #d1d1d1;box-shadow:0 1px 1px rgba(0,0,0,0.2);background:#fff}.nocaptcha p{font-size:14px;color:#333;line-height:14px;margin:24px}.nocaptcha-img{position:relative;width:300px;height:150px;overflow:hidden;border:1px solid #d1d1d1;left:24px;background:url(//m.baidu.com/static/search/nocaptcha/loading.png) 50% 50% no-repeat #f2f2f2}.nocaptcha-img div{display:none}.nocaptcha-ori,.nocaptcha-new{position:absolute;left:0;top:0;width:100%;height:100%}.nocaptcha-ori div,.nocaptcha-new div{position:absolute;display:inline-block}.nocaptcha-new{opacity:0;transition:opacity .3s ease-in}.nocaptcha-new-show{opacity:1}.nocaptcha-slice{position:absolute;z-index:2;left:270px;top:0}.nocaptcha-refresh{width:40px;height:40px;position:absolute;right:12px;bottom:4px;background:url(//m.baidu.com/static/search/nocaptcha/refresh.png) 10px 10px no-repeat;cursor:pointer}.nocaptcha-info,.nocaptcha-info-mask{position:absolute;left:0;top:0;width:100%;height:100%}.nocaptcha-info-mask{opacity:.5;background:#000;z-index:3}.nocaptcha-info{background-repeat:no-repeat;background-position:50% 37px;text-align:center;color:#fff;z-index:4}.nocaptcha-info span{display:inline-block;margin-top:92px;font-size:14px;line-height:14px}.nocaptcha-pass{background-image:url(//m.baidu.com/static/search/nocaptcha/right.png)}.nocaptcha-fail{background-image:url(//m.baidu.com/static/search/nocaptcha/fail.png);cursor:pointer}"
}, function(t, e) {
	function n(t) {
		for (var e = [], n = [
			[48, 57],
			[65, 90],
			[97, 122]
		], a = 0; a < n.length; a++) for (var o = n[a][0]; o <= n[a][1]; o++) e.push(String.fromCharCode(o));
		if (t) {
			seed = t.split("");
			for (var o = 0; o < e.length; o++) {
				var i = o % seed.length;
				i = seed[i].charCodeAt(0), i %= e.length;
				var c = e[o];
				e[o] = e[i], e[i] = c
			}
		}
		this.dict = e, this.dictstr = e.join(""), this.base = this.dict.length
	}
	n.prototype = {
		d: "()*~_./:",
		ei: function(t) {
			var e = "",
				n = Math.abs(parseInt(t));
			if (n) for (; n;) e += this.dict[n % this.dict.length], n = parseInt(n / this.dict.length);
			else e = this.dict[0];
			return (t < 0 ? "-" : "") + e
		},
		di: function(t) {
			var e = 0,
				n = 1;
			t && "-" == t[0] && (n = -1, t = t.substr(1));
			for (var a = 0; a < t.length; a++) {
				var o = this.dictstr.indexOf(t.substr(a, 1));
				o >= 0 && (e += Math.pow(this.base, a) * o)
			}
			return e * n
		},
		ea: function(t) {
			if (!t || !t.length) return "";
			for (var e = "", n = this, a = 0; a < t.length; a++) {
				var o = n.ei(t[a]),
					i = o.length;
				t[a] < 0 && i--, i > 1 && (o = n.d[i - 2] + o), e += o
			}
			return e = e.replace(/(.)\1{3,12}/g, function(t) {
				return "@" + (t.length - 4) + t[0]
			})
		},
		da: function(t) {
			for (var e = [], n = this, a = t.split(""), o = 0; o < a.length; o++) e.push(n.di(a[o]));
			return e
		}
	}, t.exports = n
}, function(t, e) {
	function n() {
		this.startData = {}, this.data = {}
	}
	n.prototype = {
		start: function(t, e) {
			this.startData[t] = void 0 == e ? (new Date).getTime() : e
		},
		end: function(t, e) {
			var n = void 0 == e ? (new Date).getTime() : e;
			return void 0 == this.startData[t] ? 0 : (this.data[t] = n - this.startData[t], this.data[t])
		},
		get: function(t) {
			return this.data[t]
		}
	}, t.exports = n
}, function(t, e, n) {
	function a() {
		for (var t in p) h(document).on(t, o);
		for (var t in l) h(window).on(t, o)
	}
	function o(t) {
		var e = p[t.type] || l[t.type];
		if (e) {
			if ("mousemove" == t.type || "scroll" == t.type) {
				var n = (new Date).getTime();
				if (n - g < d.collect_interval) return;
				g = n
			}
			var a = [e, parseInt(t.timeStamp)];
			"mousedown" == t.type || "mousemove" == t.type || "mouseup" == t.type ? a.push(t.pageX, t.pageY) : "scroll" == t.type && a.push(window.scrollX, window.scrollY);
			for (var o = 0; o < a.length; o++) if (a[o] != u[o]) {
				f.push(a), f.length > 1e3 && f.shift(), u = a;
				break
			}
		}
	}
	function i() {
		for (var t = "", e = {}, n = ["a", "b", "body", "br", "button", "canvas", "div", "em", "embed", "fieldset", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hr", "html", "i", "iframe", "img", "input", "label", "li", "link", "meta", "object", "option", "p", "pre", "script", "section", "select", "span", "strong", "style", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "title", "tr"], a = 0; a < n.length; a++) e[n[a]] = 0;
		h("*").each(function() {
			var t = this.tagName.toLowerCase();
			void 0 != typeof e[t] && e[t]++
		});
		for (var o in e) t += (e[o] || "") + "$";
		return t
	}
	function c() {
		var t = document.body,
			e = document,
			n = navigator,
			a = window,
			o = screen,
			i = {
				textLength: (t.textContent || t.innerText).length,
				htmlLength: t.innerHTML.length,
				documentMode: e.documentMode || e.compatMode,
				systemLanguage: a.systemLanguage,
				browserLanguages: n.languages && n.languages.join(","),
				devicePixelRatio: a.devicePixelRatio,
				colorDepth: o.colorDepth,
				userAgent: n.userAgent,
				cookieEnabled: n.cookieEnabled,
				netEnabled: n.onLine,
				innerWidth: a.innerWidth,
				innerHeight: a.innerHeight,
				outerWidth: a.outerWidth,
				outerHeight: a.outerHeight,
				screenWidth: o.width,
				screenHeight: o.height,
				screenAvailWidth: o.availWidth,
				screenAvailHeight: o.availHeight,
				screenLeft: o.left || a.screenLeft,
				screenTop: o.top || a.screenTop,
				screenAvailLeft: o.availLeft,
				screenAvailTop: o.availTop,
				localStorageEnabled: !! a.localStorage,
				sessionStorageEnabled: !! a.sessionStorage,
				indexedDBEnabled: !! a.indexedDB,
				CPUClass: n.cpuClass,
				platform: n.platform,
				doNotTrack: n.doNotTrack,
				timezone: (new Date).getTimezoneOffset() / 60,
				hardwareConcurrency: n.hardwareConcurrency
			},
			c = "";
		for (var r in i) i[r] && "boolean" == typeof i[r] ? c += "1" : i[r] && (c += i[r]), c += "$$";
		return c
	}
	var r = n(1),
		s = n(9),
		d = n(2),
		h = n(4),
		p = {
			mousedown: 1,
			mousemove: 2,
			mouseup: 3
		},
		l = {
			scroll: 4,
			focus: 5,
			blur: 6,
			unload: 7
		},
		f = [],
		u = [],
		g = -1;
	a(), t.exports = {
		send: function(t, e) {
			for (var n = "", a = new s(t), o = 0; o < f.length; o++) n += a.ea(f[o]) + "$";
			var h = [],
				p = {
					idc: e,
					sid: t,
					action: n,
					attr: c(),
					page: i()
				};
			for (var l in p) h.push(l + "=" + encodeURIComponent(p[l]));
			r.loadImage(d.collectapi + "?" + h.join("&"))
		}
	}
}, function(t, e, n) {
	function a() {
		var t = 0,
			e = [],
			n = function() {
				setTimeout(function() {
					t++ <= o.timeline_count ? (e.push((new Date).getTime()), n()) : c = i.arrayDelta(e)
				}, o.timeline_delay)
			};
		n()
	}
	var o = n(2),
		i = n(1),
		c = [];
	a(), t.exports = {
		get: function() {
			return c
		},
		reset: function() {
			a()
		}
	}
}]);